<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<div class="content-wrap">
    <div class="wrapper" >
        <ul class="nav nav-tabs">
            <li class="active">
                <a href="#"   onclick="loadDiv('mainCenterDiv','${ctx}/oper/examType/examItemList')">检查项目列表</a>
            </li>
            <li>
                <a href="#" onclick="loadExamClinic('rigthCenterDiv','${ctx}/oper/examType/examItemForm')">检查项目添加</a>
            </li>
        </ul>
        <section class="panel panel-default">
            <div class="panel-body">
                <div class="table-responsive no-border">
                    <div class="datatable-top">
                        <div class="pull-left">

                        </div>
                    </div>
                    <table id="contentTable" class="table table-bordered mg-t datatable">
                        <thead>
                        <tr>
                            <th>检查类别</th>
                            <th>诊疗项目</th>
                            <th>执行科室</th>
                            <th>备注信息</th>
                            <th>操作</th>
                        </tr>
                        </thead>
                        <tbody>
                        <c:forEach items="${list}" var="examVsClinic">
                        <tr>
                            <td> ${examVsClinic.examType.name}</td>
                            <td> ${examVsClinic.clinicItemDict.itemName}</td>
                            <td>${examVsClinic.orgDept.deptName}</td>
                            <td> ${examVsClinic.remarks}</td>
                            <td>
                                <a href="#" onclick="loadDiv('rigthCenterDiv','${ctx}/oper/examType/examItemForm?id=${examVsClinic.id}&performedBy=${examVsClinic.performedBy}&deptName=${fns:getDeptName(examVsClinic.performedBy,'')}')" class="btn btn-success btn-xs">修改</a>
                                <a href="#"  class="applyBt btn btn-danger btn-xs" onclick="confirmExtend('确认要删除该项目吗？',function(){delLoad('mainCenterDiv','${ctx}/oper/examType/deleteExamItem?id=${examVsClinic.id}','${ctx}/oper/examType/examItemList')})">删除</a>
                            </td>
                        </tr>
                        </c:forEach>
                    </table>
                </div>
            </div>
        </section>
    </div>
</div>